FauxSpeakFrame_LoadQuest = FauxSpeakFrame_LoadQuest or nil

function FauxSpeakFrame_LoadQuest()
	local string;
	g_SpeakFrameData.OnClose = nil;
	g_SpeakFrameData.LastChoice	= nil;
	SpeakFrame_SetDetail(GetSpeakDetail());
	SpeakFrame_SetName();
	local index	= 1;
	local Last = 0;
	local _NumQuest	= 0;
	local IsAddQuest = 0;
	QuestIcons = {};
	QuestIcons[1] = DF_IconType_NewQuest;
	QuestIcons[2] = DF_IconType_UnfinishQuest;
	QuestIcons[3] = DF_IconType_FinishedQuest;
	for iType = 1, 3 do
		_NumQuest = GetNumQuest(iType);
		if (_NumQuest ~= 0) then
			SpeakFrame_AddCatalog(SPEAKFRAME_CATALOG[iType]);
			for i = 1, _NumQuest do
				local _QuestName = GetQuestNameByIndex(iType, i);
				if QuestList[_QuestName] then _QuestName = QuestList[_QuestName] end
				if (GetNewbieQuestGuide() == 1 and iType == 1) then
					SpeakFrame_AddOption(_QuestName, OnClick_QuestListButton, QuestIcons[iType], i, 1);
				else
					SpeakFrame_AddOption(_QuestName, OnClick_QuestListButton, QuestIcons[iType], i);
				end
			end
			IsAddQuest = 1;
		end
		Last = _NumQuest;
	end
	local _NumOption = GetNumSpeakOption();
	if (_NumOption ~= 0) then
		if (IsAddQuest ~= 0) then
			SpeakFrame_AddCatalog(SPEAK_CATALOG_1);
		end
		for iIndex = 1, _NumOption do
			local OptionTxt, OptionType = GetSpeakOption(iIndex);
			if (not OptionType)then
				OptionType = DF_IconType_Speak;	
			end
			SpeakFrame_AddOption(OptionTxt, SpeakFrame_SpeakOption, OptionType, iIndex);
		end
	end
	SpeakFrame_AddOption(SPEAKFRAME_LEAVE, SpeakFrame_Hide, DF_IconType_Speak);
	SpeakFrameDetailScrollFrame:UpdateScrollChildRect();	
	SpeakFrame_Show();
end

if (SpeakFrame_LoadQuest ~= FauxSpeakFrame_LoadQuest) then
	SpeakFrame_LoadQuest = FauxSpeakFrame_LoadQuest
	dofile("Interface/AddOns/DailyBoardInfo/Locales/"..string.sub(GetLocation(), 1, 2)..".lua");
end